package com.beamfield.dao.sys;

import com.beamfield.modelVo.ProductVo;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.beamfield.model.Product;
import com.beamfield.model.ProductExample;
import com.beamfield.modelVo.ProductVo;

public interface ProductMapper {
    int deleteByPrimaryKey(String product_id);

    int insert(Product record);

    int insertSelective(Product record);

    List<Product> selectByExample(ProductExample example);
    
    List<ProductVo> getProduct(@Param("beamid")Long beamid);

    Product selectByPrimaryKey(String product_id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
    
	@Delete("delete from  t_product where beam_id=#{0}")
	void deleteAll(Long beamid);

	 List<ProductVo> listAll(@Param("beam_id")Long beamId);

}